{extend name="main/index" /}
{block name="main"}
<!--角色列表页面-->
<div class="content-page">
    <div class="content">
        <h1 class="text-center h1">角色列表</h1>
        <table class="table table-bordered text-center">
            <tr>
                <th class="active col-xs-1 text-center h4">编号</th>
                <th class="active col-xs-2 text-center h4">角色名</th>
                <th class="active col-xs-5 text-center h4">拥有权限</th>
                <th class="active col-xs-4 text-center h4">操作</th>
            </tr>
            <!--遍历-->
            {volist name="list" id="v"}
            <tr>
                <td class="info h4" style="line-height: 30px;">{$v['r_id']}</td>
                <td class="info" style="line-height: 30px;">{$v['r_rolename']}</td>
                {if !empty($node_name[$v['r_id']])}
                <td class="info" style="line-height: 30px;">
                    {volist name="node_name[$v['r_id']]" id="k"}
                        <span>{$k['n_nodename']}</span>
                    {/volist}
                </td>
                {/if}
                {if empty($node_name[$v['r_id']]) }
                <td class="info" style="line-height: 30px;">
                {/if}

                <td class="info">
                    <a class="btn btn-primary" href="{:url('admin/con2/edit',['r_id'=>$v['r_id']])}">权限修改</a>
                    <button type="button" class="btn btn-warning">角色信息修改</button>
                    <button type="button" class="btn btn-danger del-btn" data-id="{$v['r_id']}">删除角色信息</button>
                </td>
            </tr>
            {/volist}

        </table>
    </div>
</div>














{/block}